﻿using System;

namespace RazakiSite.PagesPublic
{
    public partial class AboutUs : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ConfigControls();
        }

        protected override void ConfigControls()
        {
            string[] alphabeticalNumbers = { "یک", "دو", "سه", "چهار", "پنج", "شش", "هفت", "هشت", "نه", "ده" };
            DateTime startDate = new DateTime(2007, 3, 21); //فروردین سال 1386
            TimeSpan tSLength = DateTime.Now.Subtract(startDate);
            int length = tSLength.Days / 365;

            lblYears.Text = alphabeticalNumbers[length - 1];
        }

    }
}